using CodeSaude.Domain.Entities;
using System.ComponentModel.DataAnnotations;
using System.Data.Entity.ModelConfiguration;

namespace CodeSaude.Infrastructure.Data.EntityConfig
{
    public class boletim_exameMap : EntityTypeConfiguration<boletim_exame>
    {
        public boletim_exameMap()
        {
            // Primary Key
            this.HasKey(t => t.num_sequencial);

            // Properties
            this.Property(t => t.obs_ecg_exame)
                .HasMaxLength(3000);

            // Table & Column Mappings
            this.ToTable("boletim_exame");
            this.Property(t => t.num_sequencial).HasColumnName("num_sequencial");
            this.Property(t => t.id_boletim).HasColumnName("id_boletim");
            this.Property(t => t.id_exame).HasColumnName("id_exame");
            this.Property(t => t.obs_ecg_exame).HasColumnName("obs_ecg_exame");
            this.Property(t => t.data_criacao).HasColumnName("data_criacao");
            this.Property(t => t.Usuario_criacao).HasColumnName("Usuario_criacao");
            this.Property(t => t.data_alteracao).HasColumnName("data_alteracao");
            this.Property(t => t.Usuario_alteracao).HasColumnName("Usuario_alteracao");
        }
    }
}
